import service from '@/utils/request'
// @Tags SysPatients
// @Summary 创建患者
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysPatients true "创建患者"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /sysPatients/createSysPatients [post]
export const createSysPatients = (data) => {
  return service({
    url: '/sysPatients/createSysPatients',
    method: 'post',
    data
  })
}

// @Tags SysPatients
// @Summary 删除患者
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysPatients true "删除患者"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysPatients/deleteSysPatients [delete]
export const deleteSysPatients = (params) => {
  return service({
    url: '/sysPatients/deleteSysPatients',
    method: 'delete',
    params
  })
}

// @Tags SysPatients
// @Summary 批量删除患者
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除患者"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysPatients/deleteSysPatients [delete]
export const deleteSysPatientsByIds = (params) => {
  return service({
    url: '/sysPatients/deleteSysPatientsByIds',
    method: 'delete',
    params
  })
}

// @Tags SysPatients
// @Summary 更新患者
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.SysPatients true "更新患者"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sysPatients/updateSysPatients [put]
export const updateSysPatients = (data) => {
  return service({
    url: '/sysPatients/updateSysPatients',
    method: 'put',
    data
  })
}

// @Tags SysPatients
// @Summary 用id查询患者
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.SysPatients true "用id查询患者"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysPatients/findSysPatients [get]
export const findSysPatients = (params) => {
  return service({
    url: '/sysPatients/findSysPatients',
    method: 'get',
    params
  })
}

// @Tags SysPatients
// @Summary 分页获取患者列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取患者列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysPatients/getSysPatientsList [get]
export const getSysPatientsList = (params) => {
  return service({
    url: '/sysPatients/getSysPatientsList',
    method: 'get',
    params
  })
}

// @Tags SysPatients
// @Summary 不需要鉴权的患者接口
// @Accept application/json
// @Produce application/json
// @Param data query systemReq.SysPatientsSearch true "分页获取患者列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /sysPatients/getSysPatientsPublic [get]
export const getSysPatientsPublic = () => {
  return service({
    url: '/sysPatients/getSysPatientsPublic',
    method: 'get',
  })
}
